package com.guoguo.service;

import com.guoguo.entity.Orders;
import com.guoguo.entity.UserExt;

import java.util.List;

/**
 * Created by Administrator on 2017/9/13 0013.
 */
public interface IPayService {
    /**
     * 生成订单
     *
     * @param payType
     * @param userId
     * @return
     */
    public Orders createOrder(int payType, String userId);

    /**
     * 支付流水明细
     *
     * @param payType
     * @param orderNo
     * @param price
     * @return
     */
    public int createPayJournal(int payType, String orderNo, String albId, String price);

    /**
     * 支付回调方法
     *
     * @param rechargeId
     * @param payType
     * @param userExt
     */
    public void payCallBack(String rechargeId, int payType, UserExt userExt);

    /**
     * 查询用户充值记录
     *
     * @param userId
     * @return
     */
    public List<Orders> getOrderList(String userId);


}
